import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listRequest(query) {
  return request({
    url: '/system/request/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getRequest(requestId) {
  return request({
    url: '/system/request/' + requestId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addRequest(data) {
  return request({
    url: '/system/request',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateRequest(data) {
  return request({
    url: '/system/request',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delRequest(requestId) {
  return request({
    url: '/system/request/' + requestId,
    method: 'delete'
  })
}

//审核
export function goCheck(query){
  return request({
    url: '/system/request/go/check',
    method: 'get',
    params: query
  })
}

//获取待办
export function  getWaitList(query){
  return request({
    url:'/system/request/wait/check',
    method: 'get',
    params: query
  })
}
